from django.shortcuts import render_to_response
from django.http import Http404, HttpResponseRedirect
from django.template import RequestContext
from django.views.decorators.csrf import csrf_exempt
from application.account.models import newlife_users
import os, datetime,commands,hashlib,random

# Create your views here.

def index(request):
    return render_to_response("chatonline/index.html")

def dialog_login(request):
    user = request.user
    data = newlife_users.objects.get(username=user)
    email = data.email
    return render_to_response("chatonline/views/dialog-login.html", locals())

def toolbar(request):
    return render_to_response("chatonline/views/toolbar.html")

def main_chat(request):
    return render_to_response("chatonline/views/main-chat.html")

def options(request):
    return render_to_response("chatonline/views/options.html")
